﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Real Time Quotes</title>
    <script type="text/javascript">
        var ck =
        {
            get: function(name) {
                var arg = name + "=";
                var alen = arg.length;
                var clen = document.cookie.length;
                var i = 0;
                var j = 0;
                while (i < clen) {
                    j = i + alen;
                    if (document.cookie.substring(i, j) == arg)
                        return ck.getCookieVal(j);
                    i = document.cookie.indexOf(" ", i) + 1;
                    if (i == 0)
                        break;
                }
                return null;
            },
            getCookieVal: function(offset) {
                var endstr = document.cookie.indexOf(";", offset);
                if (endstr == -1) {
                    endstr = document.cookie.length;
                }
                return unescape(document.cookie.substring(offset, endstr));
            }
        };
        var usrName = "";
        function checkUsr() {
            var usrId = ck.get("UsrID");
            usrName = ck.get("UsrName");
            if (usrId && usrId != "")
                return true;
            else
                return false;
        }
        var debug = false;
        if (!checkUsr() && !debug) {
            window.location = "login.html";
        }
        var versions = {
            dev: { rtq: "http://Rtqdev.morningstar.com", push: "http://Pushdev.morningstar.com" },
            release: { rtq: "http://Rtq.morningstar.com", push: "http://Push.morningstar.com" }
        };
        var version = versions.release;
    </script>
    <link rel="stylesheet" type="text/css" href="../resources/css/button.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/core.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/menu.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/dd.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/grid.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/layout.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/panel.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/qtips.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/reset-min.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/resizable.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/tabs.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/window.css" />
    <link rel="stylesheet" type="text/css" href="../resources/css/xtheme-gray.css" />
    <link href="../css/extUpdate.css" rel="stylesheet" type="text/css" />
    <link href="../css/desktop.css" rel="stylesheet" type="text/css"/>
    <link href="../css/quote2.css" rel="stylesheet" type="text/css" />

    <script src="../js/msgBox.js" type="text/javascript"></script>
    <script type="text/javascript" src="../lib/jquery.js"></script>
 	<script type="text/javascript" src="../lib/ext-base.js"></script>
    <script type="text/javascript" src="../lib/ext-all.js"></script>
    <script type="text/javascript" src="../lib/migratory-jslib.js"></script>
    <script type="text/javascript" src="../lib/jquery.json-1.3.min.js"></script>
    <script type="text/javascript" src="../js/desktop.js"></script>
    <script type="text/javascript" src="../js/app.js"></script>
    <script type="text/javascript" src="../js/module.js"></script>
    <script type="text/javascript" src="../js/DBHelper.js"></script>
    <script type="text/javascript" src="../js/common.js"></script>
	<script type="text/javascript" src="../js/push.proxy.js"></script>
	<script type="text/javascript" src="../js/watchlist.js"></script>
    <script type="text/javascript" src="../js/main.js"></script>
    <script type="text/javascript" src="../js/workspace.js"></script>
    <script type="text/javascript" src="../js/tabclosemenu.js"></script>
    <script type="text/javascript" src="../js/qtWidget.js"></script>
    <script type="text/javascript" src="../js/alert.js"></script>
    <script type="text/javascript" src="../js/search.js"></script>
    
    <!--[if IE]><script type="text/javascript" src="../lib/excanvas.min.js"></script><![endif]-->
    <script src="../lib/webtoolkit.contextmenu.js" type="text/javascript"></script>
    <script src="../js/mstar.common.js" type="text/javascript"></script>

    <script src="../lib/rtqcn.min.js" type="text/javascript"></script>
  
    <script src="../js/DFmt.us.js" type="text/javascript"></script>

</head>
<body scroll="no" oncontextmenu="return false;">
<div id="rtframeheader" class="rtf-header">
        <div class="rtf-sect">
            <ul>
                <li menuitemstyle="item" class="rtc-pmdd1" style="height: 26px"><a mname="fileMenu"
                    class="rtc-pmddh2" href="javascript:void(0)">File </a>
                    <ul idkey="fileMenu" style="width:150px">
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="new" catkey="fileList" class="on">New Workspace...</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="save" catkey="fileList" class="on">Save Workspace</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="saveAs" catkey="fileList" class="on">Save Workspace As...</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="delete" catkey="fileList" class="on">Delete Workspace</a></li>
                        <li>&nbsp;-------------------------</li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="exit" catkey="fileList" class="on">Exit</a></li>
                    </ul>
                </li>
                <li menuitemstyle="item" class="rtc-pmdd1" style="height: 26px"><a mname="wsMenu"
                    class="rtc-pmddh2" href="javascript:void(0)">Workspace </a>
                    <ul idkey="wsMenu" style="width:120px">
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="Dow Jones" catkey="wsList"
                            class="on">Dow Jones</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="Autos" catkey="wsList"
                            class="on">Autos</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="FOREX" catkey="wsList"
                            class="on">FOREX</a></li>
                    </ul>
                </li>
                <li menuitemstyle="item" class="rtc-pmdd1" style="height: 26px"><a mname="settingsMenu"
                    class="rtc-pmddh2" href="javascript:void(0)">Settings </a>
                    <ul idkey="settingsMenu" style="width:120px">
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="hideTabs" catkey="settingsList"
                            class="on">Hide Tabs</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="hideTickerTape" catkey="settingsList"
                            class="on">Hide Ticker Tape</a></li>
                        <li>&nbsp;-------------------</li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="alert" catkey="settingsList"
                            class="on">Alert</a></li>
                    </ul>
                </li>
                <li class="rtc-pmdd1">
                    <a href="javascript:void(0)"class="rtc-pmddh2" value="Help">Help</a>
                     <ul idkey="helpList">
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="help" catkey="hpList"
                            class="on">Help</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="about" catkey="hpList"
                            class="on">About</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <!--end section-->
        <div class="rtf-sect">
            <ul>
                <li menuitemstyle="item" class="rtc-pmdd1" style="height: 26px"><a mname="frequency"
                    class="rtc-pmddh2" href="javascript:void(0)">Add </a>
                    <ul idkey="addMenu">
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="watchlist" catkey="addList"
                            class="on">Watchlist</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="chart" catkey="addList"
                            class="on">Chart</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="news" catkey="addList"
                            class="on">News</a></li>
                         <li><a href="javascript:void(0)" menuitemstyle="trigger" value="qt" catkey="addList"
                            class="on">Quicktake</a></li>
                    </ul>
                </li>
                <li menuitemstyle="item" class="rtc-pmtxt" style="width:100px"><a mname="componentMenu" value="Chart" href="javascript:void(0)">
                    Chart </a>
                    <ul idkey="componentMenu">
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="Watchlist" catkey="componentList"
                            class="on">Watchlist</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="Chart" catkey="componentList"
                            class="on">Chart</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="News" catkey="componentList"
                            class="on">News</a></li>
                        <li><a href="javascript:void(0)" menuitemstyle="trigger" value="qt" catkey="componentList"
                            class="on">Quicktake</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <!--end section-->
        <div >
            <input autocomplete="off" class="rtc-ctrl-input" idkey="tickerBox" id="out_tickerbox" />
            <a href="javascript:void(0)" menuitemstyle="trigger" value="go" catkey="goList"class="rtc-ctrl-go-button">GO</a>  
            <a class="rtf-search-button"  href="javascript:void(0)" onclick="workspaceManager.openSearchDlg()"></a>
        </div>
         <div id="out_downlist" class="rtc-auto-drop"></div>
        <div>
        </div>
        <!--end section-->
    </div>
      
<div id="workspace" class="workspace"></div>
<div id="x-desktop" class="x-desktop">
    <ul><li menuitemstyle="item" class="rtc-pmdd1">
        <ul id="rtwls">
        </ul>
    </li></ul>
<textarea cols="100" rows="10" id="debugConsole" style="display:none;"></textarea>
<div id="popupBox" class="popup"></div>
</div>
<div class="rtt-tape" id="rtttickertape1" style="z-index:10000;">
    <div class="rtt-ctn"><ul></ul></div>
    <div class="rtt-addlnk"><a href="#" title="add new ticker">+</a></div>
</div>

<div class="rtt-tape" id="rtttickertape2" style="bottom:25px;_margin-top:-25px;">
    <div class="rtt-ctn"><ul></ul></div>
    <div class="rtt-addlnk"><a href="#" title="add new ticker">+</a></div>
</div>  
 <ul id="rtwlcm" class="rtrm-ot" style="position:absolute; z-index:10000; display:none; left: 0px; top: 0px;">
    <li class="rtrm-out" value="lines" menuitemstyle="trigger"><a class="rtrm-arrow" href="javascript:void(0)">Chart</a>
        <ul>
            <li><a catkey="chart" value="lines" menuitemstyle="trigger" href="javascript:void(0)">Line</a></li>
            <li><a catkey="chart" value="ohlc" menuitemstyle="trigger" href="javascript:void(0)">OHLC</a></li>
            <li><a catkey="chart" value="candle" menuitemstyle="trigger" href="javascript:void(0)">Candlestick</a></li>
        </ul>
    </li>
    <li class="rtrm-out"><a catkey="news" value="news" menuitemstyle="trigger" href="javascript:void(0)">News</a></li>
    <li class="rtrm-out"><a catkey="qt" value="qt" menuitemstyle="trigger" href="javascript:void(0)">Quicktake</a></li>
    <li class="rtrm-out"><a catkey="alert" value="alert" menuitemstyle="trigger" href="javascript:void(0)">Alert</a></li>
</ul>
<script type="text/javascript">
    var rtt1 = null;
    var rtt2 = null;
    function holdRelease() {
        $("A[value='qt']").parent().hide();
        $("A[catkey='qt']").hide();
    }
    holdRelease();
</script>
</body>
</html>
